home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-07-24 | 13.3 KB | 349 lines | [ttro/ttxt] |
- MT2Trivial, version 2.1.3
- © Copyright by Michael Trofimov, 1996, 1997.
- email : mtrofimov@glas.apc.org
- URL: http://www.glasnet.ru/~mtrofimov/
-
- ______________________________________________________
- File Read.Me
- ______________________________________________________
-
- This Drag&Drop utility generates C/Pascal source from resource
- file.
-
- NOTE : MT2Trivial is shareware, see REGISTERING for more info.
-
- CONTENTS .
-
- 1. FILES/FOLDERS LIST.
- 2. ABOUT MT2Trivial.
- 3. BALLOON HELP.
- 4. ABOUT CUSTOMIZATION.
- 5. AN EXAMPLE.
- 6. VERSION HISTORY.
- 7. ACKNOWLEDGMENTS
- 8. BUG REPORTS, COMMENTS ETC.
- 9. COPYRIGHT
- 10. REGISTERING
- 11. OTHER MT2 SOFTWARE
- 12. ABOUT THE AUTHOR.
-
-
- 1. FILES/FOLDERS LIST.
-
- "MT2Trivial 2.1.2 ƒ" folder contains three folders ("MT2Trivial Templates ƒ ",
- "MT2Trivial Documentation ƒ " and "Example ƒ ") and the following files:
-
- Read.Me -- this file;
- MT2Trivial -- the application;
-
- NOTE : "MT2Trivial Documentation ƒ " folder is included into registered
- version only. This folder contains MT2Trivial documentation, bug
- info etc. In limited-version this folder is absent.
-
- "MT2Trivial Templates ƒ" folder contains two folders ("MainLoop THINK Pascal ƒ "
- and "MainLoop CodeWarrior C ƒ ") and the following files:
-
- TemplateStrs.c.Trivial
- TemplateStrs.p.Trivial -- Template strings file;
-
- Head.c.Trivial
- Uses.p.Trivial -- pattern file to generate "uses" list;
-
- User.c.Trivial
- User.p.Trivial -- pattern file to generate user's code;
-
- MakeMenu.c.Trivial
- MakeMenu.p.Trivial -- pattern file to generate menu bar support
- procedures (1);
- MenuComm.c.Trivial
- MenuComm.p.Trivial -- pattern file to generate menu bar support
- procedures (2);
- NewWindow.c.Trivial
- NewWindow.p.Trivial -- pattern file to generate DoNewWindow
- procedure;
-
- MainLoop.c.Trivial
- MainLoop.p.Trivial -- pattern file to generate events related
- procedures;
-
- "MainLoop THINK Pascal ƒ" folder contains :
-
- MainLoop.p.Trivial -- pattern file to generate events related
- procedures according to THINK Pascal terms;
-
- "MainLoop CodeWarrior C ƒ" folder contains :
-
- MainLoop.c.Trivial -- pattern file to generate events related
- procedures according to CodeWarrior C terms;
-
- "Example ƒ" folder contains :
-
- test.rsrc -- an example resource file;
-
- test.p -- Pascal source generated by MT2Trivial from
- "test.rsrc " file;
-
- test.make -- MPW make file for compiling and linking
- "test.p " and "test.rsrc " under MPW;
-
- test -- the application (produced from the sources
- "test.p " and "test.rsrc "; the similar
- application may be produced from "test.c "...).
-
-
- 2. ABOUT MT2Trivial.
-
- Drag a resource file onto MT2Trivial icon. MT2Trivial asks you about settings
- (via two dialogs), reads resources from selected file and writes C or Pascal
- program to output file, where
-
- -- resources IDs will be listed in constant definition list;
-
- -- templates of procedures/functions to support some types
- (DLOG,MENU,WIND, etc.) of the resources will be introduced;
-
- -- some other templates for standard procedures/functions such
- as Mac managers initialization and event loop will be represented;
-
- -- other templates to generate user's custom code may be used;
-
- etc.
-
- A user can select resources for source code generation, choose
- language (Pascal or C), output file name etc. via two dialog windows.
- The first window is Preferences window. It will open after
- dropping input file icon onto MT2Trivial icon. When user presses OK
- button, setup parameters from this dialog will be saved in
- MT2Trivial preferences file in Preferences folder of System folder,
- and then the second dialog window will open. There are listed all
- resources from input file in this dialog, and user is able to select
- necessary resources (by type or by ID) for generation. In contrast
- with the first dialog the second dialog settings will not be saved
- anywhere.
-
- To generate a name (identifier), MT2Trivial gets name of this
- resource from input and to provide readable code, each resource
- (except DITL resources) should be named before generation. You can
- do it via your favorite resource editor (for example, via ResEdit),
- before MT2Trivial launching, as well as in the second dialog of
- MT2Trivial.
-
- NOTE : MT2Trivial changes resource names only for generated target
- file, but does not change resource name, or something else
- in input (source) file.
-
- MT2Trivial ignores characters, which are not appropriated for
- identifier's syntax and adds letter prefix to identifier if
- resource name begins from digit, and so on. Also a user can easy rename
- program identifiers later through Canon MPW tool. For this possibility
- MT2Trivial generates Canon dictionary file (".Dict " file name extension).
-
- To generate procedure templates MT2Trivial uses pattern files :
-
- MainLoop.x.Trivial
- MakeMenu.x.Trivial
- MenuComm.x.Trivial
- (where x is "c " or "p "), and
-
- Uses.p.Trivial or Head.c.Trivial
-
- which templates look like well-known "Inside Macintosh" examples .
- You can modify these files to get necessary result of generation. Also,
- there are another goodies to simplify your programming work. For
- example, MT2Trivial copies Uses template with alphabetical list of
- standard units, and you can simply cut&paste the necessary of them.
- You can include names of your own units to "Head.c.Trivial" (for C)
- or to "Uses.p.Trivial" (for Pascal) files. Also, there are "User.c.Trivial"
- and "User.p.Trivial" empty files, which you can use to define you own
- patterns (see, CUSTOMIZATION section for more info).
-
- NOTE 1: There are Toolbox initializations in "MainLoop.p.Trivial" file,
- that is not necessary for THINK Pascal. So, for THINK Pascal
- environment replace the file with "MainLoop.p.Trivial" file
- from "MainLoop THINK Pascal ƒ" folder!
-
- NOTE2: For CodeWarrior C environment replace the file "MainLoop.c.Trivial"
- file from "MainLoop CodeWarrior C ƒ" folder!
-
- There are special condition compilation directives to control
- generation from templates (see, CUSTOMIZATION section for more info).
-
- MT2Trivial inserts placeholders (commented by %%-markers) where
- programmer should insert or modify source code. However, in some
- cases the generated program pattern may be compiled, linked and
- executed successfully (for example, run the test application, which
- was built by "test.make" file, from "test.p" gotten from MT2Trivial's
- output as is.) Of course, the test does not make any useful works
- -- it's pattern only, but it's valuable pattern -- it runs without
- run-time errors! The similar error free program you will receive
- from "test.c" file.
-
- By default MT2Trivial generates the most complete source, but
- for some tasks, for example, when your program has been already
- written and you need to insert there additional constant list, the
- full text generation may be too redundant -- too large parts of the
- text you would erase by hand. In similar cases you can suppress
- generation of the parts through setting in Preferences dialog.
-
- NOTE : The number of resources may be used for generation is very
- restricted for limited version of MT2Trivial (Not more 36
- resources in resource file is possible). The registered
- version has not this limitation.
-
-
- 3.BALLOON HELP.
-
- Use standard Balloon Help to get detailed info.
-
-
-
- 4.ABOUT CUSTOMIZATION.
-
- To customize MT2Trivial to his/her purposes, a user can modify
- template files and some resources of MT2Trivial application.
- However other items could not be changed. Read about customization
- before you try to modify something yourself.
-
- Possible customization described in details in "Customization.doc"
- file "MT2Trivial Documentation ƒ " folder. This folder included into
- package of registered version of MT2Trivial.
-
-
-
- 5. AN EXAMPLE.
-
- 1) create "test.rsrc" file by any resource editor
- (ResEdit, for instance) or use "test.rsrc" file
- from "Example ƒ" folder.
-
- 2) drag "test.rsrc" icon by mouse and drop the icon onto
- MT2Trivial icon: you will be prompted about generation
- parameters, change them and press "OK" button, then
- select resources for generation in the next dialog,
- and press "Done" button -- generation progress box
- will appear. In the result "test.p" or "test.c" file
- (according to selected language) will be written
- by MT2Trivial.
-
- Now you are able to modify and compile "test.p" (or "test.c")
- file for your needs.
-
- 6.VERSION HISTORY.
-
- July, 1997: MT2Trivial, version 2.1.3:
- a few bugs are fixed; documentation is changed;
-
- February, 1997: MT2Trivial, version 2.1.2:
- dialogs are improved;
-
- December, 1996: MT2Trivial, version 2.1.1:
- user interface is improved; documentation is changed;
-
- October, 1996: MT2Trivial, version 2.0d2:
- stack overflow bug for large number of source resources
- is fixed; new application icons family is implemented;
-
- July/August, 1996: MT2Trivial, version 2.0d1:
- reading resources as is: conversion to resource
- description file is unnecessary, now; preferences
- support; GUI of MT2Trivial is revised. Balloon help
- is added. Documentation is revised.
-
- May/June, 1996: MT2Trivial, version 1.0b2:
- GUI support procedures of current version of
- MT2Trivial had been generated by Trivial MPW Tool,
- after that generator's procedures from Trivial
- were improved and introduced to MT2Trivial utility.
-
- October,1995: Trivial, version 1.0b1 MPW tool:
- This MPW Tool was included in MT2Toolkit for
- MPW Pascal programmers.
-
-
- 7.ACKNOWLEDGMENTS
-
- Many thanks to Lev Possajennikov <leo@adi.com.au> for very productive
- discussion of Trivial & MT2Trivial.
-
-
- 8. BUG REPORTS, COMMENTS ETC.
-
- Please, send it via email to mtrofimov@glas.apc.org
-
-
- 9. COPYRIGHT
-
- Copyright by Michael Trofimov, 1996,1997.
-
- To publish the program, for example, to insert it into CD-ROM, please
- ask the author about permission.
-
- All files listed in "FILES/FOLDERS LIST" should be copied as is.
-
-
- 10.REGISTERING
-
- There are a few important differences between MT2Trivial-limited
- and registered version.
-
- 1) MT2Trivial-limited can not proceeds more than 36 resources,
- registered version can.
-
- 2) Documentation folder is inserted into registered version only.
-
- Also:
-
- -- Registered user periodically receives FAQ and
- Found Bugs Reports via email.
-
- -- The next update of MT2Trivial will be free for
- registered user!
-
- Please, send email to: <mtrofimov@glas.apc.org>.
- You will be informed where to transmit shareware fee
- (according to your geographical location).
-
- After your shareware fee will be received you will get
- registered version of MT2Trivial package via email in
- ".sit.hqx" format: use any BinHex4 and StuffIt utility
- to decode and decompress the archive.
-
- Shareware fee is $19US (+your expenses to transmit the fee).
-
- In some cases reasonable discount may be possible. (Be sure to
- ask about it via email -- please, note your reason for that!)
-
-
- 11. OTHER MT2 SOFTWARE.
-
-
- * Color Music System Prometheus
- * MT2hyperDisk
- * and more...
-
- Please, see URL: http://www.glasnet.ru/~mtrofimov/
-
-
- 12. ABOUT THE AUTHOR.
-
- Michael Trofimov is a computer scientist, chemist and programmer.
- He works in Lab of Computer Chemistry, N.D.Zelinsky Institute of
- Organic Chemistry of Academy of Sci. of Russia.
- Also he makes independent researches and commercial programs
- development.
-
- The MT2Trivial was planned as accumulation of author's experience
- of methods to solve tasks of practical programming. Author uses it
- permanently in his works, and so consequently improves and
- develops it.
-
- Please, see more info at URL: http://www.glasnet.ru/~mtrofimov/
-
- _____________________________________________________
-
- THANK YOU for your interest to MT2 software,
-
- Michael Trofimov.
- ______________________________________________________
-
-